package com.gumanx;


import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;

public class EntityStaffExplosion extends EntityThrowable {

	public EntityStaffExplosion(World par1World) {
		super(par1World);
	}

	public EntityStaffExplosion(World par1World, EntityLiving par2EntityLiving) {
		super(par1World, par2EntityLiving);
	}

	public EntityStaffExplosion(World par1World, double par2, double par4,
			double par6) {
		super(par1World, par2, par4, par6);
	}

	/**
	 * Called when this EntityThrowable hits a block or entity.
	 */
	protected void onImpact(MovingObjectPosition par1MovingObjectPosition) {
		if (!this.worldObj.isRemote) {
			this.worldObj.createExplosion(this, this.posX, this.posY,
					this.posZ, 10, true);
			this.setDead();
		}
	}

	public String getTextureFile() {
		return CommonProxy.ITEMS_PNG;
	}
}
